Ext.onReady(function(){
 //changePanel
var changePanel = Ext.create('Ext.form.Panel',{
	id: 'change',
	border: false,
	bodyStyle: {background:"#dfe7f4",padding:"10 0 0 20"},
	labelAlign: 'left',				
	items: [{
		layout: 'column',
		border: false,		
		bodyStyle: {background:"#dfe7f4"},
		items: [{
			width: 210,
			layout: 'form',
			defaultType: 'radio',
			defaults: {height: 22},
			bodyStyle: {background:"#dfe7f4"},
			border: false,
			labelWidth: 80,	 
			items: [{
				fieldLabel: '转换模式',
				boxLabel: '手动流转->调用类',
				value: '1',
				id:'radioManual',
				name: 'changeMethodRadio',
				listeners: {
					"check": function(e,b){
					if (b)
					{
					if(presrc != null){
					var parentNode = findXmlNode(presrc);
					parentNode.setAttribute('assignType',"1");	
					 
					}										
					Ext.getCmp("classBox").disabled?Ext.getCmp("classBox").enable():Ext.getCmp("classBox").disable();
					}
					}
				}
			},{
				boxLabel: '自动流转',
				name: 'changeMethodRadio',
				value: '2',
				id:'radioAuto',
				width: 'auto',
				checked:true,
				listeners: {
				'check': function(e,b){	
				if (b)
				{
					Ext.getCmp("classBox").setValue("");						 
					if(presrc != null){
					var parentNode = findXmlNode(presrc);	
					parentNode.setAttribute('assignType',"2");	 
					setNodeAttrClass(parentNode);	
					/*					
						var currNode = getNodeAdapt(parentNode,assignHandle);
						if (currNode!=null)
							setNodeAttrClass(currNode);	
							*/							
						 
					}
				}
				}
	}
			}]
		},{
			width: 320,
			layout: 'form',
			bodyStyle: {background:"#dfe7f4"},
			border: false,
			defaultType: 'textfield',
			labelWidth: 4,
			items: [{
				width: 300,
				id: 'classBox' ,
				disabled:true,
				listeners: {
		'blur': function(e){ 
			if(presrc != null){
			var parentNode = findXmlNode(presrc);
			var currNode = getNodeAdaptClass(parentNode);
			if (currNode!=null)
				currNode.setAttribute('class',e.getValue());
				 
			}
		}
	}
			}]
		} ]
	}]	
});	

Ext.getCmp('paramCard').add(changePanel);
}); 